package com.kandinfo.isbnmanage.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kandinfo.base.common.service.AbstractService;
import com.kandinfo.isbnmanage.domian.IsbnPage;
import com.kandinfo.isbnmanage.repository.IsbnPageRepository;
import com.kandinfo.isbnmanage.service.IsbnPageService;



@Service
public class IsbnPageServiceImpl extends AbstractService<IsbnPage, Long, IsbnPageRepository> implements IsbnPageService {

	@Autowired
	IsbnPageRepository isbnPageRepository;
	
	@Resource
    public void setIsbnPageRepository(
    		IsbnPageRepository isbnPageRepository){
        super.setRepository(isbnPageRepository);
    }
	
	@Override
	public List<IsbnPage> findByBarcode(String barcode){
		return isbnPageRepository.findByBarcode(barcode);
	}

	@Override
	public List<IsbnPage> findPagesByInforId(Long isbnInformationId) {
		
		return isbnPageRepository.findPagesByInforId(isbnInformationId);
	}

}
